﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace HMS.ClassLibrary
{
   
    public class BackgroundTask : BackgroundWorker
    {
        
        public BackgroundTask()
        {
      
        }

        
        public DoWorkEventHandler DoWorkEvent
        {
            set { this.DoWork += value; }
          
        }
        public RunWorkerCompletedEventHandler WorkCompletedEvent
        {
            set { this.RunWorkerCompleted += value; }

        }
        public void Start()
        {
            try
            {
                this.RunWorkerAsync();
                
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}
